.class public Lcom/hyphenate/chat/EMTextMessageBody;
.super Lcom/hyphenate/chat/EMMessageBody;

# interfaces
.implements Landroid/os/Parcelable;


# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    new-instance v0, Lcom/hyphenate/chat/EMTextMessageBody$1;

    invoke-direct {v0}, Lcom/hyphenate/chat/EMTextMessageBody$1;-><init>()V

    sput-object v0, Lcom/hyphenate/chat/EMTextMessageBody;->CREATOR:Landroid/os/Parcelable$Creator;

    return-void
.end method

.method private constructor <init>(Landroid/os/Parcel;)V
    .locals 2

    invoke-direct {p0}, Lcom/hyphenate/chat/EMMessageBody;-><init>()V

    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;

    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMTextMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    return-void
.end method

.method synthetic constructor <init>(Landroid/os/Parcel;Lcom/hyphenate/chat/EMTextMessageBody$1;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/hyphenate/chat/EMTextMessageBody;-><init>(Landroid/os/Parcel;)V

    return-void
.end method

.method constructor <init>(Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;)V
    .locals 0

    invoke-direct {p0}, Lcom/hyphenate/chat/EMMessageBody;-><init>()V

    iput-object p1, p0, Lcom/hyphenate/chat/EMTextMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Lcom/hyphenate/chat/EMMessageBody;-><init>()V

    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;

    invoke-direct {v0, p1}, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMTextMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    return-void
.end method


# virtual methods
.method public describeContents()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public getMessage()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMTextMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;->text()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "txt:\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lcom/hyphenate/chat/EMTextMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;->text()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public writeToParcel(Landroid/os/Parcel;I)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMTextMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMATextMessageBody;->text()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    return-void
.end method
